home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.8 KB | 42 lines | [TEXT/GEOL] |
- Item 4462251 15-Jan-91 18:08PST
-
- From: D2188 Office Product Tech, B Toback,PRT
-
- To: MACAPP.TECH$ MacApp Technical
-
- Item forwarded by SPA.DTS to SPA0144
-
- ------------------------------------------------------------------------------
-
- Sub: Of Pascal '9x and TEditText
-
- Re: Of Pascal '9x, TEditText and SFPutFile
-
- My comment about Pascal '9x ("why bother?") should not be misinterpreted either
- as an indictment of Object Pascal (some of my best friends are Pascal
- programmers) or an endorsement of C++ (some of my best programs look like
- Sanskrit). Object Pascal clearly has a role to play, and should continue to be
- supported and enhanced. Rather, it was intended to provoke discussion as to the
- *best* use of expensive and scarce engineering resources: a redesign of Object
- Pascal or the creation of an entirely new and better OOP environment.
-
- But for the moment, I have a problem that I'd be delighted to solve in either
- language. I need to create what might otherwise be a subclass of TEditText, if
- a TEditText accepted key and menu commands directly. Essentially, for every
- character typed, I need to do something besides display it. I can't find a
- simple way to do this; the only way I've found is to subclass TEditText and
- override StartEdit and StopEdit, creating and installing my own subclass of
- TTEView rather than using the one belonging to the enclosing TDialogView. That
- seems messy, and what's worse, I don't completely understand the logic
- associated with TDialogView and its interaction with TEditText. Can someone
- help? Essentially, what I'd like is something like the SFPutFile implementation
- on 7.0, but with keystrokes showing up in the filename box as they are typed --
- even when the list has the input focus.
-
- Thanks,
- -- Bruce Toback
- OPT, Inc.
- D2188
-
-
-